package com.hmdp.httpclienTest.ThreadReload.util;

import com.hmdp.httpclienTest.HttpClientT4;

import java.util.concurrent.Callable;

public class ThreadQueryReload implements Callable<String> {

    //每个线程查询出来的数据集合
    private String datas;

    public ThreadQueryReload(String url) throws Exception {
        String html = HttpClientT4.resultHtml(url);
        datas=html;
    }

    @Override
    public String call() throws Exception {
        return datas;
    }
}
